---
layout: default
---
{% include header.html %}

<!-- Main -->
<div id="main">
	<!-- Post -->
	<article class="shade-two">
	  <div class="container">
			<header>
				<h2>{{- page.title -}}</h2>
				<p>{% if page.author %}{{ page.author }}, {% endif %}{{- page.date | date_to_long_string -}}</p>
				
				{%- include tag_iter.html cate=page.cate tags=page.tags -%}


				{% if page.translation %} 

					{% comment %}
					hack the url:
					   /blog/2023/08/25/   how-many-msys2.html
					/cn/blog/2023/08/25/cn-how-many-msys2.html
					{% endcomment %}

					{% assign url_arr = page.url | split: "/"%}

						{% if page.tags contains "cn" %}

							<p>我是秦始皇，如果你愿意帮我看看英文版本有什么问题，我会V<strong>你</strong>50。</p>
		
							<a href="/{% for i in url_arr %}
								{%- if forloop.index == 1 -%}{%- continue -%}{%- endif -%}
								{%- if forloop.index == 2 -%}{%- continue -%}{%- endif -%}
								{%- if forloop.last -%}
									{{ i | remove_first: 'cn-'}}
								{%- else -%}
									{{ i }}/
								{%- endif -%}
							
							{% endfor %}
							">
								English Edition(英文版本) 

						{% else %}
							<a href="/cn{% for i in url_arr %}
								{%- if forloop.last -%}
									cn-{{ i }}
								{%- else -%}
									{{ i }}/
								{%- endif -%}
							
							{% endfor %}">Chinese Edition(中文版本)
						{% endif %}
					</a>
				{% else %}
					<p class="comment">
					{% if page.tags contains "cn" %}
						Sorry! There's no English edition for this blog now! 
					{% else %}
						抱歉！这里暂时还没有此页面对应的中文版本！
					{% endif %}
					</p>
				{% endif %}
			</header>
	    {{- content -}}

		{% if page.tags contains "cn" %}
			<strong>请尊重他人知识产权，转载请注明原作者和原文链接！谢谢合作！</strong>
		{%- else -%}
			<strong>Please provide original author's name and links to this page if you want to cite. Thanks.:D</strong>
		{% endif %}
		</div>
	</article>
</div>